package com.fuyd.pms.entity;

import com.fuyd.pms.entity.base.BaseEntityGen;
import org.hibernate.annotations.Type;
import org.hibernate.validator.constraints.Length;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 商家
 * Created by fuyongde on 2015/12/23.
 */
@Entity
@Table(name = "pms_merchant")
public class Merchant extends BaseEntityGen {
    /**商户名称**/
    private String name;
    /**商户简介**/
    private String introduction;
    /**商户logo**/
    private String logo;
    /**商家相册**/
    private String album;

    @Type(type = "string")
    @Length(max = 128)
    @Column(nullable = false)
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Type(type = "text")
    @Length(max = 1024)
    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    @Type(type = "string")
    @Length(max = 128)
    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    @Type(type = "text")
    @Length(max = 1024)
    public String getAlbum() {
        return album;
    }

    public void setAlbum(String album) {
        this.album = album;
    }
}
